#ifndef VIEW_H
#define VIEW_H

#include <QWidget>

class Document;

class View : public QWidget
{
	Q_OBJECT

public:
	View(QWidget *parent = 0);
	~View();

	QPointer<Document> document() const;
protected:
	void paintEvent(QPaintEvent* pEvent);
	QSize sizeHint() const;
private:
	QPointer<Document> m_doc;
};

#endif // VIEW_H
